package com.emep.changzhi.analyse.repository.error;

import com.emep.changzhi.analyse.entity.error.AirQuality;
import com.emep.changzhi.analyse.entity.error.IndustrialGas;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author xy
 * @Description: 工业废气监测异常持久层
 * @date 2018/2/26 17:36
 * @version V1.0
 */

public interface IndustrialGasRepository extends CrudRepository<IndustrialGas, Long> {
    @Query("select * from error_industrial_gas limit :pageSize")
    List<IndustrialGas> industrialGasHome(@Param("pageSize") Integer pageSize);
    @Query("select * from error_industrial_gas where token(id)>token(:id) limit :pageSize")
    List<IndustrialGas> industrialGasFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
